package com.example.jf.jfapp.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jf on 2017/7/30.
 */

public class UserInfoResponse {
    private ResultBean result;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        private int code;
        private String message;
        private UserInfoBean userInfo;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public UserInfoBean getUserInfo() {
            return userInfo;
        }

        public void setUserInfo(UserInfoBean userInfo) {
            this.userInfo = userInfo;
        }

        public static class UserInfoBean implements Parcelable {

            private String createdAt;
            private boolean emailVerified;
            private boolean followeeStatus;
            private String headProtrait;
            private boolean mobilePhoneVerified;
            private String objectId;
            private String updatedAt;
            private String username;

            protected UserInfoBean(Parcel in) {
                createdAt = in.readString();
                emailVerified = in.readByte() != 0;
                followeeStatus = in.readByte() != 0;
                headProtrait = in.readString();
                mobilePhoneVerified = in.readByte() != 0;
                objectId = in.readString();
                updatedAt = in.readString();
                username = in.readString();
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(createdAt);
                dest.writeByte((byte) (emailVerified ? 1 : 0));
                dest.writeByte((byte) (followeeStatus ? 1 : 0));
                dest.writeString(headProtrait);
                dest.writeByte((byte) (mobilePhoneVerified ? 1 : 0));
                dest.writeString(objectId);
                dest.writeString(updatedAt);
                dest.writeString(username);
            }

            @Override
            public int describeContents() {
                return 0;
            }

            public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
                @Override
                public UserInfoBean createFromParcel(Parcel in) {
                    return new UserInfoBean(in);
                }

                @Override
                public UserInfoBean[] newArray(int size) {
                    return new UserInfoBean[size];
                }
            };

            public String getCreatedAt() {
                return createdAt;
            }

            public void setCreatedAt(String createdAt) {
                this.createdAt = createdAt;
            }

            public boolean isEmailVerified() {
                return emailVerified;
            }

            public void setEmailVerified(boolean emailVerified) {
                this.emailVerified = emailVerified;
            }

            public boolean isFolloweeStatus() {
                return followeeStatus;
            }

            public void setFolloweeStatus(boolean followeeStatus) {
                this.followeeStatus = followeeStatus;
            }

            public String getHeadProtrait() {
                return headProtrait;
            }

            public void setHeadProtrait(String headProtrait) {
                this.headProtrait = headProtrait;
            }

            public boolean isMobilePhoneVerified() {
                return mobilePhoneVerified;
            }

            public void setMobilePhoneVerified(boolean mobilePhoneVerified) {
                this.mobilePhoneVerified = mobilePhoneVerified;
            }

            public String getObjectId() {
                return objectId;
            }

            public void setObjectId(String objectId) {
                this.objectId = objectId;
            }

            public String getUpdatedAt() {
                return updatedAt;
            }

            public void setUpdatedAt(String updatedAt) {
                this.updatedAt = updatedAt;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

        }
    }
}
